package xyz.zhzby.cyzx.ucenter.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import xyz.zhzby.cyzx.servicebase.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author zby
 * @since 2021-12-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("u_follow")
@ApiModel(value="Follow对象", description="关注表")
public class Follow extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "关注者")
    @TableField("from_id")
    private Long fromId;

    @ApiModelProperty(value = "被关注者")
    @TableField("to_id")
    private Long toId;


}
